// 正则工具类
function isImg(fileName) {
	return /^.{20}\.(png|jpg|jpeg|PNG|JPG|JPEG)$/.test(fileName)
}

function isHttp(url) {
	return url.indexOf('http') === 0
}

function isHttps(url) {
	return url.indexOf('https') === 0
}

export default {
	isImg,
	isHttp,
	isHttps
}
